package Math类;

public class MathDemo2 {

	public static void main(String[] args) {
		double d = Math.sqrt(4);
		System.out.println(Math.sin(2*Math.PI));
		System.out.println(Math.cos(2*Math.PI));
		System.out.println(Math.pow(2,2));
		System.out.println(Math.log(Math.E));
		System.out.println(Math.exp(1));
		System.out.println(Math.max(2,Math.min(3, 4)));
		System.out.println(Math.rint(-2.5));
		System.out.println(Math.ceil(-2.5));
		System.out.println(Math.floor(-2.5));
		System.out.println(Math.round(-2.5F));
		System.out.println(Math.round(-2.5));
		System.out.println(Math.rint(-2.5));
		System.out.println(Math.ceil(2.5));
		System.out.println(Math.round(2.5F));
		System.out.println(Math.round(2.5));
		System.out.println(Math.round(Math.abs(-2.5)));
	}
}
